home *** CD-ROM | disk | FTP | other *** search
-
- class Quote extends Actor;
-
- var private string ActionMessage;
-
- var private Array<string> GrouchoArray;
- var private Array<string> KarlArray;
- var private Array<string> GBArray;
-
-
- public function string GetAQuote(){
- local string SingleQuote;
- SingleQuote = GetSingleQuote();
- return SingleQuote;
- }
-
-
- public function MakeQuotes(){
- SetArraysOfQuotes();
- }
-
- private function SetArraysOfQuotes(){
-
- //Groucho Marx
- local string GrouchoSays, KarlSays, GeorgeSays;
- local int Count, Itr;
-
- GrouchoSays =
- "Either he's dead or my watch has stopped. " $ Chr(10) $
- "And I want to thank you for all the " $
- "enjoyment you've taken out of it. " $ Chr(10) $
- "All people are born alike - " $
- "except Republicans and Democrats. " $ Chr(10) $
- "I don't care to belong to a club that " $
- "accepts people like me as members. " $ Chr(10) $
- "I must confess, I was born at a very early age. "
- $ Chr(10) $
- "I worked my way up from nothing "$
- "to a state of extreme poverty. " $ Chr(10) $
- "Military intelligence is a contradiction in terms. "
- $ Chr(10) $
- "No man goes before his time - "$
- "unless the boss leaves early. " $ Chr(10) $
- "The secret of life is honesty and fair dealing." $
- " If you can fake that, you've got it made. " $ Chr(10) $
- "A hospital bed is a parked taxi with the meter running. ";
-
- Count = Split(GrouchoSays, Chr(10), GrouchoArray);
-
-
- KarlSays =
- "Experience praises the most happy the " $
- "one who made the most people happy. " $ Chr(10) $
- "For the bureaucrat, the world is a " $
- "mere object to be manipulated... " $ Chr(10) $
- "From each according to his abilities, " $
- "to each according to his needs. " $ Chr(10) $
- "Go on, get out. Last words are for "$
- "fools who haven't said enough. " $ Chr(10) $
- "Necessity is blind until it becomes conscious. " $
- "Freedom is the consciousness of necessity. " $ Chr(10) $
- "Nothing can have value without being an object of utility. "
- $ Chr(10) $
- "Reason has always existed, "$
- "but not always in a reasonable form. " $ Chr(10) $
- "Religion is the opium of the masses. " $ Chr(10) $
- "Revolutions are the locomotives of history. " $ Chr(10) $
- "The production of too many useful things " $
- "results in too many useless people. ";
- Count = Split(KarlSays, Chr(10), KarlArray);
-
-
-
- GeorgeSays =
- "All great truths begin as blasphemies. " $ Chr(10) $
- "A government that robs Peter to pay Paul" $
- "can always depend on the support of Paul. " $ Chr(10) $
- "A life spent making mistakes is not only more "$
- "honorable but more useful than " $
- "a life spent doing nothing. " $ Chr(10) $
- "A doctorÆs reputation is made by the number of eminent" $
- "men who die under his care. " $ Chr(10) $
- "All great truths begin as blasphemies. " $ Chr(10) $
- "Baseball has the great advantage over cricket" $
- " of being sooner ended. " $ Chr(10) $
- "If all the economists in the world were laid end to end, "
- $"they wouldnÆt reach any conclusion. " $ Chr(10) $
- "Martyrdom: The only way a man can become famous "$
- "without ability. " $ Chr(10) $
- "My reputation grows with every failure. " $ Chr(10) $
- "One man that has a mind and knows it can "$
- "always beat ten men who haven't and don't.";
- Count = Split(GeorgeSays, Chr(10), GBArray);
-
- }//end of SetArraysOfQuotes
-
-
- private function string GetSingleQuote(){
- local string Quote;
- local int Ctr;
- Ctr = Rand(3);
- switch(Ctr){
- case 0:
- Quote = KarlArray[ Rand(Rand(KarlArray.Length) ) ];
- break;
- case 1:
- Quote = GrouchoArray[ Rand(GrouchoArray.Length) ];
- break;
- case 2:
- Quote = GBArray[ Rand(GBArray.Length) ];
- break;
- default:
- }//end switch
- return Quote;
- }//end GetSingleQuote
-
-
-